package codej.ast;

import static codej.ast.Option.*;
import codej.ast.*;
import codej.ast.*;

public class NextVariableDeclarator extends AbstractNode {

	private final String op;
	private final VariableDeclarator nextVariableDeclarator;

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public NextVariableDeclarator(String op, VariableDeclarator nextVariableDeclarator) {
		this.op = op;
		this.nextVariableDeclarator = nextVariableDeclarator;
	}

	public String getOperator() {
		return op;
	}

	public VariableDeclarator getNextVariableDeclarator() {
		return option(nextVariableDeclarator, new VariableDeclarator());
	}

}
